<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>物业管理系统</title>
		<meta name="description" content="description">
		<meta name="author" content="kangbiao">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="plugins/bootstrap/bootstrap.css" rel="stylesheet">
		<link href="plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet">
		<link href="css/font-awesome.css" rel="stylesheet">
		<!--<link href='http://fonts.googleapis.com/css?family=Righteous' rel='stylesheet' type='text/css'>-->
		<link href="plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
		<link href="plugins/fullcalendar/fullcalendar.css" rel="stylesheet">
		<link href="plugins/xcharts/xcharts.min.css" rel="stylesheet">
		<link href="plugins/select2/select2.css" rel="stylesheet">
		<link href="css/style.css" rel="stylesheet">
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
				<script src="http://getbootstrap.com/docs-assets/js/html5shiv.js"></script>
				<script src="http://getbootstrap.com/docs-assets/js/respond.min.js"></script>
		<![endif]-->
		<!--<style>-->
			<!--tr td,tr th-->
			<!--{-->
				<!--text-align: center;-->
			<!--}-->
		<!--</style>-->
	</head>
<body>
<!--Start Header-->
<div id="screensaver">
	<canvas id="canvas"></canvas>
	<i class="fa fa-lock" id="screen_unlock"></i>
</div>
<div id="modalbox">
	<div class="devoops-modal">
		<div class="devoops-modal-header">
			<div class="modal-header-name">
				<span>Basic table</span>
			</div>
			<div class="box-icons">
				<a class="close-link">
					<i class="fa fa-times"></i>
				</a>
			</div>
		</div>
		<div class="devoops-modal-inner">
		</div>
		<div class="devoops-modal-bottom">
		</div>
	</div>
</div>
<header class="navbar">
	<div class="container-fluid expanded-panel">
		<div class="row">
			<div id="logo" class="col-xs-12 col-sm-2">
				<a href="index.html">物业管理系统</a>
			</div>
			<div id="top-panel" class="col-xs-12 col-sm-10">
				<div class="row">
					<div class="col-xs-1 col-sm-1">
						<a href="#" class="show-sidebar">
						  <i class="fa fa-bars"></i>
						</a>
					</div>
                    <div class="col-xs-8 col-sm-5 top-panel-right">
                        <label for="villageTopList">当前园区:</label>
                        <select class="select" style="width: 200px;" id="villageTopList">
                        </select>
                    </div>
					<div class="col-xs-3 col-sm-6 top-panel-right">
						<ul class="nav navbar-nav pull-right panel-menu">
							<li class="dropdown">
								<a href="#" class="dropdown-toggle account" data-toggle="dropdown">
									<div class="avatar">
										<img src="img/avatar.jpg" class="img-rounded" alt="avatar" />
									</div>
									<i class="fa fa-angle-down pull-right"></i>
									<div class="user-mini pull-right">
										<span class="welcome">欢迎您,</span>
										<span>admin</span>
									</div>
								</a>
								<ul class="dropdown-menu">
									<li>
										<a href="#">
											<i class="fa fa-user"></i>
											<span>个人资料</span>
										</a>
									</li>
									<li>
										<a href="#">
											<i class="fa fa-cog"></i>
											<span>个人设置</span>
										</a>
									</li>
									<li>
										<a href="login.html">
											<i class="fa fa-power-off"></i>
											<span>登出</span>
										</a>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>
<!--End Header-->
<!--Start Container-->
<div id="main" class="container-fluid">
	<div class="row">
		<div id="sidebar-left" class="col-xs-2 col-sm-2">
			<ul class="nav main-menu">
				<li>
					<a href="ajax/dashboard.html" class="active ajax-link">
						<i class="fa fa-dashboard"></i>
						<span class="hidden-xs">系统首页</span>
					</a>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-building-o"></i>
						<span class="hidden-xs">物业管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/propertyList.html">物业信息</a></li>
						<!--<li><a class="ajax-link" href="ajax/addVillage.html">增加园区</a></li>-->
						<!--<li><a class="ajax-link" href="ajax/addBuilding.html">增加楼栋</a></li>-->
						<li><a class="ajax-link" href="ajax/villageList.html">园区信息</a></li>
						<li><a class="ajax-link" href="ajax/buildingList.html">楼栋信息</a></li>
						<li><a class="ajax-link" href="ajax/addProperty.html">增加物业</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-truck"></i>
						<span class="hidden-xs">车位管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/parkingLotList.html">车位信息</a></li>
						<li><a class="ajax-link" href="ajax/brakeList.html">道闸信息</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-users"></i>
						<span class="hidden-xs">用户管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/ownerList.html">住户清单</a></li>
						<!--<li><a class="ajax-link" href="ajax/addOwner.html">增加业主</a></li>-->
						<!--<li><a class="ajax-link" href="ajax/tenantList.html">租户</a></li>-->
						<li><a class="ajax-link" href="ajax/appUserList.html">APP账号管理</a></li>
						<!--<li><a class="ajax-link" href="ajax/authenticatedUserList.html">授权用户</a></li>-->
						<!--<li><a class="ajax-link" href="ajax/charts_flot.html">app登陆账号管理</a></li>-->
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-cny"></i>
						 <span class="hidden-xs">缴费管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/billInfo.html">缴费清单</a></li>
						<li><a class="ajax-link" href="ajax/estateFeeList.html">物业管理费</a></li>
                        <li><a class="ajax-link" href="ajax/serviceFeeList.html">物业服务费</a></li>
                        <li><a class="ajax-link" href="ajax/parkingLotFeeList.html">车位管理费</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-bullhorn"></i>
						<span class="hidden-xs">公告管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/noticeAdd.html">新增公告</a></li>
						<li><a class="ajax-link" href="ajax/noticeList.html">历史公告</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-wrench"></i>
						<span class="hidden-xs">投诉报修</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/complain.html">投诉</a></li>
						<li><a class="ajax-link" href="ajax/repair.html">报修</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-lock"></i>
						<span class="hidden-xs">yunPass管理</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/secretConfig.html">密钥导入</a></li>
						<li><a class="ajax-link" href="ajax/secretList.html">密钥查看</a></li>
					</ul>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle">
						<i class="fa fa-exchange"></i>
						<span class="hidden-xs">数据导入</span>
					</a>
					<ul class="dropdown-menu">
						<li><a class="ajax-link" href="ajax/dashboard.html">物业信息导入</a></li>
						<li><a class="ajax-link" href="ajax/dashboard.html">车位信息导入</a></li>
					</ul>
				</li>
			</ul>
		</div>
		<!--Start Content-->
		<div id="content" style="position: absolute;right: 0px" class="col-xs-12 col-sm-10">
			<div class="preloader">
				<img src="img/devoops_getdata.gif" class="devoops-getdata" alt="preloader"/>
			</div>
			<div id="ajax-content"></div>
		</div>
		<!--End Content-->
	</div>
</div>
<!--End Container-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--<script src="http://code.jquery.com/jquery.js"></script>-->
<script src="plugins/jquery/jquery-2.1.0.min.js"></script>
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="plugins/bootstrap/bootstrap.min.js"></script>
<script src="plugins/justified-gallery/jquery.justifiedgallery.min.js"></script>
<script src="plugins/tinymce/tinymce.min.js"></script>
<script src="plugins/tinymce/jquery.tinymce.min.js"></script>
<!-- All functions for this theme + document.ready processing -->

<script src="js/config.js"></script>

<script src="js/devoops.js"></script>
<script type="text/javascript">
    $("#villageTopList").change(function(){
        var villageID=$("#villageTopList option:selected").val();
        if(villageID=="")
            alert("未能获取正确的园区信息");
        setCookie("villageID",villageID,10);
        $.ajax({
            type: "get",
            async: true,
            url: urlConfig.setVillageIDCookie+villageID,
            dataType: "json", //返回数据形式为json
            success: function (result) {
            },
            error: function () {
            }
        });
    });

    function setCookie(cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays*24*60*60*1000));
        var expires = "expires="+d.toUTCString();
        document.cookie = cname + "=" + cvalue + "; " + expires;
    }

    $(document).ready(function() {
        $.ajax({
            type: "post",
            async: true,
            url: urlConfig.getVillageSelect2,
            dataType: "json", //返回数据形式为json
            success: function (result) {
                if (result.status) {
                    var options="";
                    for(var i in result.jsonString)
                    {
                        options+="<option value='"+result.jsonString[i].id+"'>"+result.jsonString[i].text+"</option>";
                    }
                    $("#villageTopList").append(options);
                }
                else
                {
                    $("#villageTopList").append('<option value="">获取园区信息失败</option>');
                }
            },
            error: function () {
                $("#villageTopList").append('<option value="">获取园区信息失败</option>');
            }
        });
    });
</script>
</body>
</html>
